<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Voodoo Shader Framework: K:/VoodooShader/DX9_Module/DX9_Module.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.6.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <img id="MSearchSelect" src="search/search.png"
             onmouseover="return searchBox.OnSearchSelectShow()"
             onmouseout="return searchBox.OnSearchSelectHide()"
             alt=""/>
        <input type="text" id="MSearchField" value="Search" accesskey="S"
             onfocus="searchBox.OnSearchFieldFocus(true)" 
             onblur="searchBox.OnSearchFieldFocus(false)" 
             onkeyup="searchBox.OnSearchFieldChange(event)"/>
        <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
        </div>
      </li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>K:/VoodooShader/DX9_Module/DX9_Module.hpp</h1><a href="_d_x9___module_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00002"></a>00002 <span class="preprocessor">#include &quot;../Framework/VoodooFramework.hpp&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#pragma comment(lib, &quot;../Debug/VoodooFramework.lib&quot;)</span>
<a name="l00004"></a>00004 <span class="preprocessor"></span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &quot;D3D9.h&quot;</span>
<a name="l00006"></a>00006 <span class="preprocessor">#include &quot;Cg/cgD3D9.h&quot;</span>
<a name="l00007"></a>00007 <span class="preprocessor">#pragma comment(lib, &quot;cgD3D9.lib&quot;)</span>
<a name="l00008"></a>00008 <span class="preprocessor"></span>
<a name="l00009"></a>00009 <span class="keyword">namespace </span>VoodooShader
<a name="l00010"></a>00010 {
<a name="l00011"></a>00011         <span class="keyword">namespace </span>DirectX9
<a name="l00012"></a>00012         {
<a name="l00013"></a><a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html">00013</a>                 <span class="keyword">struct </span><a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html">FSVert</a>
<a name="l00014"></a>00014                 {
<a name="l00015"></a><a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#aa22b025c2a06522a2ee8da9a16439231">00015</a>                         FLOAT <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a06c79d8fa83648b726a2f812bfdabd61">x</a>, <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#ac0ec93fde57b4d7be1bb65041f91ec2a">y</a>, <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#aa22b025c2a06522a2ee8da9a16439231">z</a>, <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#abe5e20e7badbafd41fd3bd04b3f3216e">rhw</a>;
<a name="l00016"></a><a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a6782624c1a889d935f5b87a02026bc43">00016</a>                         DWORD <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a6782624c1a889d935f5b87a02026bc43">color</a>;
<a name="l00017"></a><a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a79af20f7e876c984e5e5936551f0711f">00017</a>                         FLOAT <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a5b01bd1b05671ad05910126f8f3dfc94">tu</a>, <a class="code" href="struct_voodoo_shader_1_1_direct_x9_1_1_f_s_vert.html#a79af20f7e876c984e5e5936551f0711f">tv</a>;
<a name="l00018"></a>00018                 };
<a name="l00019"></a>00019 
<a name="l00020"></a><a class="code" href="_d_x9___module_8hpp.html#a6bd9a594223c54eab984d8abd6a4cf63">00020</a> <span class="preprocessor">#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZRHW | D3DFVF_DIFFUSE | D3DFVF_TEX1)</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span>
<a name="l00022"></a><a class="code" href="namespace_voodoo_shader_1_1_direct_x9.html#a63ae7031cb60c469ec32f7aefb113a8f">00022</a>                 LPDIRECT3DVERTEXBUFFER9 <a class="code" href="namespace_voodoo_shader_1_1_direct_x9.html#a63ae7031cb60c469ec32f7aefb113a8f">FSQuadVerts</a>;
<a name="l00023"></a>00023 
<a name="l00024"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html">00024</a>                 <span class="keyword">class </span><a class="code" href="_meta_8hpp.html#a64a3622e4b9bb13e6e7a451bfaa84a48">VOODOO_API</a> <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html">Adapter</a>
<a name="l00025"></a>00025                         : VoodooShader::<a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html">Adapter</a>
<a name="l00026"></a>00026                 {
<a name="l00027"></a>00027 
<a name="l00028"></a>00028                 <span class="keyword">public</span>:
<a name="l00029"></a>00029                         <a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html">Adapter</a>(<a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> * core, IDirect3DDevice9 * device);
<a name="l00030"></a>00030 
<a name="l00031"></a>00031                         <span class="keywordtype">void</span> Bind(<a class="code" href="class_voodoo_shader_1_1_shader.html">Shader</a> * shader);
<a name="l00032"></a>00032                         <span class="keywordtype">void</span> Unbind();
<a name="l00033"></a>00033                         <span class="keywordtype">void</span> DrawFSQuad();
<a name="l00034"></a>00034                         <span class="keywordtype">void</span> Apply(<a class="code" href="class_voodoo_shader_1_1_parameter.html">Parameter</a> * param);
<a name="l00035"></a>00035                         <span class="keywordtype">void</span> HandleError(CGcontext context, CGerror error, <span class="keywordtype">void</span> * core);
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 
<a name="l00038"></a>00038                 <span class="keyword">private</span>:
<a name="l00039"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a62469aa8960a283a2d2a2482ed162d96">00039</a>                         <a class="code" href="class_voodoo_shader_1_1_core.html" title="Core engine class for the Voodoo Shader Framework.">Core</a> * mCore;
<a name="l00040"></a><a class="code" href="class_voodoo_shader_1_1_direct_x9_1_1_adapter.html#a82f31841c7c3e62ec91dbd8483fa3d38">00040</a>                         IDirect3DDevice9 * mDevice;
<a name="l00041"></a>00041                 };
<a name="l00042"></a>00042         };
<a name="l00043"></a>00043 }
</pre></div></div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&nbsp;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&nbsp;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&nbsp;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&nbsp;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&nbsp;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr class="footer"/><address style="text-align: right;"><small>Generated on Thu Oct 14 23:18:33 2010 for Voodoo Shader Framework by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>
